﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using K.EnterpriseLibary.Entity;
using System.Data;
namespace K.Contract
{
    public interface IUserService
    {
        bool CheckUserExsit(string inputStr, int LoginType);
        EnumRegister Register(UserInfo userInfo, UserBaseInfo userBaseInfo, out int uid);
        UserInfo GetUserInfo(int userId);
        
        /*       
        bool IsAdmin(UserInfo userInfo);
        bool CheckUserExsit(UserInfo userInfo);
        EnumLoginState CheckUser(UserInfo userInfo, out int loginnum);
        UserInfo GetUserInfo(UserInfo userInfo);
        bool ChangePassword(UserInfo userInfo);
        int ChangeNowCity(UserInfo userInfo);
        bool CheckEmail(UserInfo userInfo);
        int ChangeEmail(UserInfo userInfo); 
        int GetMaxuserid();
        int ChangeAddr(UserInfo userInfo);
        EnumLoginState Login(UserInfo userInfo, out int userid, out string username, out string truename, out int loginnum, int logintype);
        EnumLoginState CheckLogin(UserInfo userInfo, out int loginnum);
        UserBaseInfo GetUserBaseInfo(UserInfo userInfo);
        int Retrieve(UserInfo userInfo);
        int ResetPwd(UserInfo userInfo, out int userid, out string username, out string truename, out string userportrait);
        bool GetRestPwdRecord(UserInfo userInfo);
        int GetUserIDForEmail(UserInfo userInfo);
        int UpdateUserInfo(UserInfo us, UserBaseInfo basi);
        int UpdateUserBasicInfo(UserInfo us, UserBaseInfo basi);
        int InsertChargeOrder(ChargeOrderInfo info);
        void UpdateOnlineUser(OnlineUserInfo info);
        int GetOnlineCount(int flag);
        int InsertDyn(DynInfo info);
        int InsertNotice(NoticeInfo info);
        void UpdateNote(UserInfo userInfo);
        List<DynInfo> GetDynList(UserInfo userInfo);
        JoinVipInfo GetVipInfo(UserInfo userInfo);
        int JoinVip(UserInfo userInfo);
        int UpdateVip(UserInfo userInfo);
        int DeleteUser(UserInfo userInfo);
        int DeleteUserAll(UserInfo userInfo);
        int UpdateChargeOrderState(UserInfo userInfo);
        int DeleteChargeOrder(UserInfo userInfo);
        bool CheckPrivacy(UserInfo userInfo);
         * */
    }
}
